import Vue from 'vue';
import VueRouter from 'vue-router';
const routeFiles = import.meta.glob('./routes/*.js', { eager: true })
const routes = [

];
for (const path in routeFiles) {
  const route = routeFiles[path].default
  routes.push(route)
}
Vue.use(VueRouter);

const router = new VueRouter({
  mode: 'history', // 还可以选择 'hash' 模式
  base: '/',
  routes
});

export default router;